package co.edu.usbcali.raju.model;

import java.util.ArrayList;
import java.util.List;


public class Move {

	String name;
	List<Step> steps=new ArrayList<Step>();

	public Move() {
		super();
	}
	
	public Move(Piece piece,Cell cell) {
		super();
		Step step=new Step(piece,cell);
		steps.add(step);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Step> getSteps() {
		return steps;
	}

	public void setSteps(List<Step> steps) {
		this.steps = steps;
	}

	public boolean addStep(Step step){
		return steps.add(step);
	}
	
	public String toString(){
		String ret="";
		for (Step step : steps) {
			ret+=step+" ";
		}
		return ret;
	}
	
}
